import { PageParams } from '../types/global'
import { http } from '@/utils/request'
import { HotResult } from '@/types/hot.d'

type HotParams = PageParams & { subType ?: string }
/**
 * 通用热门推荐类型
 * @param url 请求地址
 * @param data 请求参数
 */
export function getHotRecommendAPI(url : string, data ?: HotParams) {
	return http<HotResult>({
		method: 'GET',
		url,
		data
	})
}